package hcn.protocol.brandnew.zhenliao.chufang;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import ctd.util.xml.jaxb.DateTimeAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 处方信息新增-响应消息（成功） - ODS_03020020_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class GetEpitaxialOrganizationResponse {

    /**
     * 机构
     */
    @XmlElementWrapper(name = "OrganizationList")
    @XmlElement(name = "Organization")
    private List<Organization> organizationList;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Organization {

        /**
         * 医疗机构组织机构代码
         */
        @XmlElement(name = "AuthorOrganization")
        private String authorOrganization;
        /**
         * 建档机构名称
         */
        @XmlElement(name = "AuthorOrganizationName")
        private String authorOrganizationName;
        /**
         * 联系电话
         */
        @XmlElement(name = "OrganizationPhone")
        private String organizationPhone;
        /**
         * 医院介绍
         */
        @XmlElement(name = "OrganizationInformation")
        private String organizationInformation;
        /**
         * 医院照片
         */
        @XmlElement(name = "OrganizationPhoto")
        private String organizationPhoto;
        /**
         * 医院注册地址
         */
        @XmlElement(name = "AdmitAddress")
        private String admitAddress;
        /**
         * 医院logo
         */
        @XmlElement(name = "OrganizationLogo")
        private String organizationLogo;
        /**
         * 最后修改时间
         */
        @XmlElement(name = "LastModifyTime")
        @XmlJavaTypeAdapter(DateTimeAdapter.class)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date lastModifyTime;
    }

}
